<!DOCTYPE html>
<html th:replace="layout/layout"
      xmlns:th="http://www.thymeleaf.org">
<title th:fragment="titleName">首页</title>
<style th:fragment="styles">
    #chartDiv, #container {
        height: 320px;
        width: 100%;
        overflow: hidden;
    }

</style>
<div th:fragment="content">

    <div class="wrapper wrapper-content">

        <div class="row  border-bottom white-bg dashboard-header">
            <div class="row">
                <div class="col-lg-6">
                    <div class="panel panel-info">
                        <div class="panel-heading">
                            <i class="fa fa-info-circle"></i> 推送消息列表
                            <a style="float: right;color: white" href="/newsUsers/index">更多>></a>
                        </div>

                        <div class="panel-body">
                            <div class="jqGrid_wrapper">
                                <table class="table table-striped table-bordered table-hover " id="tableList3">
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="panel panel-info">
                        <div class="panel-heading">
                            <i class="fa fa-info-circle"></i> 通知公告列表
                            <a style="float: right;color: white" href="/noticeUsers/index">更多>></a>
                        </div>

                        <div class="panel-body">
                            <div class="jqGrid_wrapper">
                                <table class="table table-striped table-bordered table-hover " id="tableList4">
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
<!--                <div class="col-lg-6">-->
<!--                    <div class="panel panel-info">-->
<!--                        <div class="panel-heading">-->
<!--                            <i class="fa fa-info-circle"></i> 待审批-->
<!--                            <a style="float: right;color: white" href="/processstay/index">更多>></a>-->
<!--                        </div>-->

<!--                        <div class="panel-body">-->
<!--                            <div class="jqGrid_wrapper">-->
<!--                                <table class="table table-striped table-bordered table-hover " id="tableList5">-->
<!--                                </table>-->
<!--                            </div>-->
<!--                        </div>-->
<!--                    </div>-->
<!--                </div>-->
            </div>
        </div>
    </div>

    <!-- 查看公告模态框 -->
    <div class="modal inmodal" id="myModalView" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title" id="title"></h4>
                    <span id="publisher"></span>
                    <span id="publisheTime"></span>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">
                        <div id="myContent"></div>
                    </div>

                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <div class="row" id="showEnclosure" hidden>
                        <!--@*模态框body*@-->
                        <a download="" href="" style="float: left" id="downEnclosure">下载附件</a>
                        <!--模态框body结束-->
                    </div>
                    <button type="button" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>
    <!-- 查看公告模态框结束 -->

    <!-- 推送消息模态框 -->
    <div class="modal inmodal" id="myModalView1" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title" id="title1"></h4>
                    <span id="publisher1"></span>
                    <span id="publisheTime1"></span>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">
                        <div id="myContent1"></div>
                    </div>

                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>
    <!-- 推送消息模态框结束 -->

    <!-- 投诉举报模态框 -->
    <div class="modal inmodal" id="myModalView2" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title" id="modaltitle"></h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">

                        <form class="form-horizontal" id="myform">
                            <div class="panel-body form-horizontal">
                                <div class="row" id="showContent">

                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">审批</label>
                                    <div class="col-lg-10">

                                        <div class="form-group">
                                            <div class="col-lg-2">
                                                <label class="checkbox-inline">
                                                    <label><input checked id="text_status" type="radio"
                                                                  name="text_status"
                                                                  value="1">同意</label>
                                                </label>
                                            </div>
                                            <div class="col-lg-2">
                                                <label class="checkbox-inline">
                                                    <label><input type="radio" name="text_status" value="0">不同意</label>
                                                </label>
                                            </div>
                                            <div class="col-lg-2">
                                                <label class="checkbox-inline">
                                                    <label><input type="radio" name="text_status" value="3">驳回</label>
                                                </label>
                                            </div>
                                            <div class="col-lg-3">
                                                <label class="checkbox-inline">
                                                    <label><input type="radio" name="text_status"
                                                                  value="-1">驳回给发起人</label>
                                                </label>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="row" id="Approval" hidden>
                                    <label class="col-lg-2 control-label">部门</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input id="treeId" type="hidden" autocomplete="off" class="form-control">
                                            <input readonly id="treeName" type="text" autocomplete="off"
                                                   class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">审批人</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id="text_reviewer" name="text_reviewer" autocomplete="off"
                                                    class="form-control">

                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label"></label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <div id="tree" class="ztree treeselect"></div>
                                        </div>
                                    </div>
                                </div>

                            </div>
                        </form>
                    </div>

                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" name="save" class="btn btn-success" onclick="saveRecord();"><i
                            class="fa fa-save"></i>&nbsp;审批
                    </button>
                    <button type="button" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>
    <!-- 投诉举报模态框 -->
</div>
<div th:fragment="scriptRef">
    <script th:src="@{/js/lib/inspinia/js/plugins/laydate/laydate.js}"></script>
    <script th:src="@{/js/lib/echart/echarts.min.js}"></script>
    <script th:src="@{/js/home/home2.js}"></script>
    <!--表单验证-->
    <script th:src="@{/js/lib/validate/jquery.validate.min.js}"></script>
</div>
<script th:fragment="scripts" type="text/javascript">
    Home2.init();
    //画柱状图
    //   Maps("line", myChart, '{value}');
</script>
</html>